package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;
import com.cloudcc.mobile.entity.beau.BeauListEntity;

/**
 * Created by lin on 2017/9/1.
 */

public class BaobiaoListAdapter extends CommonAdapter<BeauListEntity> {

    public BaobiaoListAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    public void convert(ViewHolder holder, BeauListEntity t) {
        String key[] = t.getKey().split("\\*", -1);
        holder.setText(R.id.baobiao_list_item_name, key[0]);
        holder.setText(R.id.baobiao_list_item_time, key[1]);
    }

    @Override
    public int getLayoutId() {
        return R.layout.adapter_baobiao_list;
    }
}
